<%@ Assembly Name="Starznet.SharePoint.SPDAT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=74e3ac9236a77c47" %>
<%@ Page Language="C#" Inherits="Starznet.SharePoint.SPDAT.ApplicationPages.Administration.LogFileViewPage" MasterPageFile="~/_admin/admin.master" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="ELTitle" runat="server" Text="<%$Resources:szadm,LogView_PageTitle%>" EncodeMethod="HtmlEncode" />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <SharePoint:EncodedLiteral ID="ELTitle2" runat="server" Text="<%$Resources:szadm,LogView_PageTitle%>" EncodeMethod="HtmlEncode" />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <SharePoint:EncodedLiteral ID="ELDesc" runat="server" EncodeMethod='HtmlEncodeAllowSimpleTextFormatting' />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageImage" runat="server">
	<a href="http://www.starznet.co.uk" title="Visit the Starznet website" target="_blank">
	    <img src="/_layouts/Starznet/StarznetPageGraphic.gif" alt="Starznet Ltd" style="margin-top:3px;border:0px;"/>
	</a>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <style type="text/css">
        .ms-paging td
        {
            font-family:tahoma,sans-serif;
            font-size:8pt;
            font-weight:normal;
            color:#204d89;
        }
    </style>
    <table border="0" cellspacing="0" cellpadding="0" width="700px">
        <wssuc:InputFormSection 
            Title="<%$Resources:szadm,LogView_SearchTitle%>" 
            Description="<%$Resources:szadm,LogView_SearchDesc%>"
            runat="server">
            <template_inputformcontrols>
			    <wssuc:InputFormControl runat="server" LabelText="Search Keywords">
			        <Template_Control>
				        <SharePoint:InputFormTextBox 
				            Title="<%$Resources:szadm,LogView_SearchKeywordsTitle%>" 
				            CssClass="ms-input" 
				            ID="TxtKeywords" 
				            Runat="server" 
				            Width="400px"
				            MaxLength="255" />
			        </Template_Control>
		        </wssuc:InputFormControl>
			    <wssuc:InputFormControl runat="server" LabelText="Date Range">
			        <Template_Control>
			            <SharePoint:EncodedLiteral 
			                ID="ELStartTitle" 
			                runat="server" 
			                Text="<%$Resources:szadm,LogView_SearchStartTitle%>" 
			                EncodeMethod="HtmlEncode" />&nbsp;
                        <SharePoint:DateTimeControl
			                ID="DtStart"
			                Runat="server" 
			                EnableViewState="true" />
			        </Template_Control>
		        </wssuc:InputFormControl>
			    <wssuc:InputFormControl runat="server" LabelText="">
			        <Template_Control>
			            <SharePoint:EncodedLiteral 
			                ID="ElEndTitle" 
			                runat="server" 
			                Text="<%$Resources:szadm,LogView_SearchEndTitle%>" 
			                EncodeMethod="HtmlEncode" />&nbsp;
			            <SharePoint:DateTimeControl
			                ID="DtEnd"
			                Runat="server" 
			                EnableViewState="true" />
			        </Template_Control>
		        </wssuc:InputFormControl>
		    </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
	       <Template_Buttons>
		      <asp:Button 
		        UseSubmitBehavior="false" 
		        runat="server" 
		        CssClass="ms-ButtonHeightWidth" 
		        OnClick="BtnSearch_Click" 
		        Text="<%$Resources:wss,multipages_okbutton_text%>" 
		        id="BtnSearch" 
		        accesskey="<%$Resources:wss,okbutton_accesskey%>" 
		        CausesValidation="true"/>
		    <asp:Button 
		        UseSubmitBehavior="false" 
		        runat="server" 
		        CssClass="ms-ButtonHeightWidth" 
		        OnClick="BtnClear_Click" 
		        Text="<%$Resources:szadm,Global_ClearButton%>" 
		        id="BtnClear" 
		        CausesValidation="true"/>
	       </Template_Buttons>
        </wssuc:ButtonSection>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
                <SharePoint:SPGridView
                    Id="GvLogFile"
                    AutoGenerateColumns="False"
                    Runat="server"
                    AllowSorting="true" 
                    AllowPaging="true" 
                    AllowFiltering="true" 
                    PagerSettings-Mode="NumericFirstLast" 
                    PagerSettings-Position="TopAndBottom"
                    PagerStyle-CssClass="ms-paging">
                    <Columns>
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColTimeStamp%>" DataField="TimeStamp" SortExpression="TimeStamp" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColProcess%>" DataField="Process" SortExpression="Process" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColTID%>" DataField="TID" SortExpression="TID" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColArea%>" DataField="Area" SortExpression="Area" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColCategory%>" DataField="Category" SortExpression="Category" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColEventID%>" DataField="EventID" SortExpression="EventID" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColLabel%>" DataField="Level" SortExpression="Level" />
                        <SharePoint:SPBoundField HeaderText="<%$Resources:szadm,LogView_ColMessage%>" DataField="Message" SortExpression="Message" />
                    </Columns>
                </SharePoint:SPGridView>
            </td>
        </tr>
    </table>
</asp:Content>
